<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <!--<el-form-item label="用户ID" prop="userId">
        <el-input
          v-model="queryParams.userId"
          placeholder="请输入用户ID"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item label="成果名称" prop="resultName">
        <el-input
          v-model="queryParams.resultName"
          placeholder="请输入成果名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成果类别" prop="resultCategory">
        <el-select
          v-model="queryParams.resultCategory"
          placeholder="请选择成果类别"
          clearable
        >
          <el-option
            v-for="dict in dict.type.cxcy_result_category"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
        <!--<el-input
          v-model="queryParams.resultCategory"
          placeholder="请输入成果类别"
          clearable
          @keyup.enter.native="handleQuery"
        />-->
      </el-form-item>

      <el-form-item label="成果类型" prop="resultType">
        <el-select
          v-model="queryParams.resultType"
          placeholder="请选择成果类型"
          clearable
        >
          <el-option
            v-for="dict in dict.type.cxcy_result_type"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>

      <el-form-item label="成果等级" prop="resultGrade">
        <el-select
          v-model="queryParams.resultGrade"
          placeholder="请选择成果等级"
          clearable
        >
          <el-option
            v-for="dict in dict.type.cxcy_result_grade"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
        <!--<el-input
          v-model="queryParams.resultGrade"
          placeholder="请输入成果等级"
          clearable
          @keyup.enter.native="handleQuery"
        />-->
      </el-form-item>
      <!--<el-form-item label="成果来源" prop="resultSource">
        <el-input
          v-model="queryParams.resultSource"
          placeholder="请输入成果来源"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item label="审核状态" prop="auditState">
        <template>
          <el-select
            v-model="queryParams.auditState"
            placeholder="请选择审核状态"
            clearable
          >
            <el-option
              v-for="item in statusoptions"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </template>
        <!--<el-input
          v-model="queryParams.auditState"
          placeholder="请输入审核状态"
          clearable
          @keyup.enter.native="handleQuery"
        />-->
      </el-form-item>
      <el-form-item label="签约状态" prop="signingStatus">
        <template>
          <el-select
            v-model="queryParams.signingStatus"
            placeholder="请选择签约状态"
            clearable
          >
            <el-option
              v-for="dict in dict.type.cxcy_signing_status"
              :key="dict.value"
              :label="dict.label"
              :value="dict.value"
            />
          </el-select>
        </template>
      </el-form-item>
      <!--<el-form-item label="立项时间" prop="projectTime">
        <el-date-picker clearable
          v-model="queryParams.projectTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择立项时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="技术领域" prop="technology">
        <el-input
          v-model="queryParams.technology"
          placeholder="请输入技术领域"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="完成单位" prop="completionUnit">
        <el-input
          v-model="queryParams.completionUnit"
          placeholder="请输入完成单位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="申请人姓名" prop="applyName">
        <el-input
          v-model="queryParams.applyName"
          placeholder="请输入申请人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="申请人学号" prop="applyNumber">
        <el-input
          v-model="queryParams.applyNumber"
          placeholder="请输入申请人学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="申请时间" prop="applyTime">
        <el-date-picker clearable
          v-model="queryParams.applyTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择申请时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="审核状态" prop="auditState">
        <el-input
          v-model="queryParams.auditState"
          placeholder="请输入审核状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核时间" prop="auditTime">
        <el-date-picker clearable
          v-model="queryParams.auditTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择审核时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="审核人姓名" prop="auditName">
        <el-input
          v-model="queryParams.auditName"
          placeholder="请输入审核人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="审核人工号" prop="auditNumber">
        <el-input
          v-model="queryParams.auditNumber"
          placeholder="请输入审核人工号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否显示" prop="isShow">
        <el-input
          v-model="queryParams.isShow"
          placeholder="请输入是否显示"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人姓名" prop="firstName">
        <el-input
          v-model="queryParams.firstName"
          placeholder="请输入负责人姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人年级" prop="firstGrade">
        <el-input
          v-model="queryParams.firstGrade"
          placeholder="请输入负责人年级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人专业" prop="firstMajor">
        <el-input
          v-model="queryParams.firstMajor"
          placeholder="请输入负责人专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人学号" prop="firstNumber">
        <el-input
          v-model="queryParams.firstNumber"
          placeholder="请输入负责人学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人学院" prop="firstCollege">
        <el-input
          v-model="queryParams.firstCollege"
          placeholder="请输入负责人学院"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人联系电话" prop="firstPhone">
        <el-input
          v-model="queryParams.firstPhone"
          placeholder="请输入负责人联系电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="负责人身份证号" prop="firstIdnumber">
        <el-input
          v-model="queryParams.firstIdnumber"
          placeholder="请输入负责人身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一姓名" prop="secondName">
        <el-input
          v-model="queryParams.secondName"
          placeholder="请输入成员一姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一年级" prop="secondGrade">
        <el-input
          v-model="queryParams.secondGrade"
          placeholder="请输入成员一年级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一专业" prop="secondMajor">
        <el-input
          v-model="queryParams.secondMajor"
          placeholder="请输入成员一专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一学号" prop="secondNumber">
        <el-input
          v-model="queryParams.secondNumber"
          placeholder="请输入成员一学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一学院" prop="secondCollege">
        <el-input
          v-model="queryParams.secondCollege"
          placeholder="请输入成员一学院"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一联系电话" prop="secondPhone">
        <el-input
          v-model="queryParams.secondPhone"
          placeholder="请输入成员一联系电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员一身份证号" prop="secondIdnumber">
        <el-input
          v-model="queryParams.secondIdnumber"
          placeholder="请输入成员一身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二姓名" prop="thirdName">
        <el-input
          v-model="queryParams.thirdName"
          placeholder="请输入成员二姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二年级" prop="thirdGrade">
        <el-input
          v-model="queryParams.thirdGrade"
          placeholder="请输入成员二年级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二专业" prop="thirdMajor">
        <el-input
          v-model="queryParams.thirdMajor"
          placeholder="请输入成员二专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二学号" prop="thirdNumber">
        <el-input
          v-model="queryParams.thirdNumber"
          placeholder="请输入成员二学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二学院" prop="thirdCollege">
        <el-input
          v-model="queryParams.thirdCollege"
          placeholder="请输入成员二学院"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二联系电话" prop="thirdPhone">
        <el-input
          v-model="queryParams.thirdPhone"
          placeholder="请输入成员二联系电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员二身份证号" prop="thirdIdnumber">
        <el-input
          v-model="queryParams.thirdIdnumber"
          placeholder="请输入成员二身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三姓名" prop="fourthName">
        <el-input
          v-model="queryParams.fourthName"
          placeholder="请输入成员三姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三年级" prop="fourthGrade">
        <el-input
          v-model="queryParams.fourthGrade"
          placeholder="请输入成员三年级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三专业" prop="fourthMajor">
        <el-input
          v-model="queryParams.fourthMajor"
          placeholder="请输入成员三专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三学号" prop="fourthNumber">
        <el-input
          v-model="queryParams.fourthNumber"
          placeholder="请输入成员三学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三学院" prop="fourthCollege">
        <el-input
          v-model="queryParams.fourthCollege"
          placeholder="请输入成员三学院"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三联系电话" prop="fourthPhone">
        <el-input
          v-model="queryParams.fourthPhone"
          placeholder="请输入成员三联系电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员三身份证号" prop="fourthIdnumber">
        <el-input
          v-model="queryParams.fourthIdnumber"
          placeholder="请输入成员三身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四姓名" prop="fifthName">
        <el-input
          v-model="queryParams.fifthName"
          placeholder="请输入成员四姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四年级" prop="fifthGrade">
        <el-input
          v-model="queryParams.fifthGrade"
          placeholder="请输入成员四年级"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四专业" prop="fifthMajor">
        <el-input
          v-model="queryParams.fifthMajor"
          placeholder="请输入成员四专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四学号" prop="fifthNumber">
        <el-input
          v-model="queryParams.fifthNumber"
          placeholder="请输入成员四学号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四学院" prop="fifthCollege">
        <el-input
          v-model="queryParams.fifthCollege"
          placeholder="请输入成员四学院"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四联系电话" prop="fifthPhone">
        <el-input
          v-model="queryParams.fifthPhone"
          placeholder="请输入成员四联系电话"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成员四身份证号" prop="fifthIdnumber">
        <el-input
          v-model="queryParams.fifthIdnumber"
          placeholder="请输入成员四身份证号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师一姓名" prop="advisorName1">
        <el-input
          v-model="queryParams.advisorName1"
          placeholder="请输入指导教师一姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师一职称" prop="advisorTitl1">
        <el-input
          v-model="queryParams.advisorTitl1"
          placeholder="请输入指导教师一职称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师一专业" prop="advisorMajor1">
        <el-input
          v-model="queryParams.advisorMajor1"
          placeholder="请输入指导教师一专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师一工号" prop="advisorNumber1">
        <el-input
          v-model="queryParams.advisorNumber1"
          placeholder="请输入指导教师一工号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师二姓名" prop="advisorName2">
        <el-input
          v-model="queryParams.advisorName2"
          placeholder="请输入指导教师二姓名"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师二职称" prop="advisorTitl2">
        <el-input
          v-model="queryParams.advisorTitl2"
          placeholder="请输入指导教师二职称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师二专业" prop="advisorMajor2">
        <el-input
          v-model="queryParams.advisorMajor2"
          placeholder="请输入指导教师二专业"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="指导教师二工号" prop="advisorNumber2">
        <el-input
          v-model="queryParams.advisorNumber2"
          placeholder="请输入指导教师二工号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注1" prop="note1">
        <el-input
          v-model="queryParams.note1"
          placeholder="请输入备注1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注2" prop="note2">
        <el-input
          v-model="queryParams.note2"
          placeholder="请输入备注2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注3" prop="note3">
        <el-input
          v-model="queryParams.note3"
          placeholder="请输入备注3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注4" prop="note4">
        <el-input
          v-model="queryParams.note4"
          placeholder="请输入备注4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注5" prop="note5">
        <el-input
          v-model="queryParams.note5"
          placeholder="请输入备注5"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注6" prop="note6">
        <el-input
          v-model="queryParams.note6"
          placeholder="请输入备注6"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注7" prop="note7">
        <el-input
          v-model="queryParams.note7"
          placeholder="请输入备注7"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注8" prop="note8">
        <el-input
          v-model="queryParams.note8"
          placeholder="请输入备注8"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注9" prop="note9">
        <el-input
          v-model="queryParams.note9"
          placeholder="请输入备注9"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="备注10" prop="note10">
        <el-input
          v-model="queryParams.note10"
          placeholder="请输入备注10"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <div style="text-align: right;">
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['project:cjl:achievement:export']">导出</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </div>
      <br>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['project:cjl:achievement:add']"
        >发布申请</el-button>
      </el-col>
      <!--<el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['project:achievement:edit']"
        >修改</el-button>
      </el-col>-->
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['project:cjl:achievement:remove']"
        >删除</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="achievementList" @selection-change="handleSelectionChange" border>
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="序号" align="center" :index="indexMethod" type="index"  />
     <!-- <el-table-column label="用户ID" align="center" prop="userId" />-->
      <el-table-column label="成果名称" align="center" prop="resultName" />
      <el-table-column label="负责人姓名" align="center" prop="firstName" />
      <el-table-column label="完成单位" align="center" prop="completionUnit" />
      <el-table-column label="成果类型" align="center" prop="resultType" >
      <template slot-scope="scope">
        <dict-tag :options="dict.type.cxcy_result_type" :value="scope.row.resultType"/>
      </template>
      </el-table-column>
      <!--<el-table-column label="成果简介" align="center" prop="resultIntroduction" />
      <el-table-column label="创新点" align="center" prop="innovationPoint" />
      <el-table-column label="参赛经历" align="center" prop="competitionExperience" />
      <el-table-column label="成果图片1的路径" align="center" prop="picturePath1" />
      <el-table-column label="成果图片2的路径" align="center" prop="picturePath2" />-->
      <el-table-column label="成果类别" align="center" prop="resultCategory" >
      <template slot-scope="scope">
        <dict-tag :options="dict.type.cxcy_result_category" :value="scope.row.resultCategory"/>
      </template>
      </el-table-column>
      <el-table-column label="成果等级" align="center" prop="resultGrade" >
      <template slot-scope="scope">
        <dict-tag :options="dict.type.cxcy_result_grade" :value="scope.row.resultGrade"/>
      </template>
      </el-table-column>
      <!--<el-table-column label="成果来源" align="center" prop="resultSource" />
      <el-table-column label="成果背景" align="center" prop="resultBackground" />
      <el-table-column label="成果研究意义" align="center" prop="resultMeaning" />-->
      <el-table-column label="技术领域" align="center" prop="technology" >
      <template slot-scope="scope">
        <dict-tag :options="dict.type.cxcy_technology" :value="scope.row.technology"/>
      </template>
      </el-table-column>
      <el-table-column label="立项时间" align="center" prop="projectTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.projectTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核状态" align="center" prop="auditState" >
      <template slot-scope="scope">
        <span v-if="scope.row.auditState==1">待审核</span>
        <span v-if="scope.row.auditState==2">审核通过</span>
        <span v-if="scope.row.auditState==3">审核不通过</span>
      </template>
      </el-table-column>
      <el-table-column label="签约状态" align="center" prop="signingStatus" >
        <template slot-scope="scope">
          <span v-if="scope.row.signingStatus==0" style="color: red">未签约</span>
          <span v-if="scope.row.signingStatus==1" style="color: green">已签约</span>
        </template>
      </el-table-column>
     <!-- <el-table-column label="申请人姓名" align="center" prop="applyName" />
      <el-table-column label="申请人学号" align="center" prop="applyNumber" />
      <el-table-column label="申请时间" align="center" prop="applyTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.applyTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核状态" align="center" prop="auditState" />
      <el-table-column label="审核时间" align="center" prop="auditTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.auditTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="审核人姓名" align="center" prop="auditName" />
      <el-table-column label="审核人工号" align="center" prop="auditNumber" />
      <el-table-column label="是否显示" align="center" prop="isShow" />
      <el-table-column label="负责人姓名" align="center" prop="firstName" />
      <el-table-column label="负责人年级" align="center" prop="firstGrade" />
      <el-table-column label="负责人专业" align="center" prop="firstMajor" />
      <el-table-column label="负责人学号" align="center" prop="firstNumber" />
      <el-table-column label="负责人学院" align="center" prop="firstCollege" />
      <el-table-column label="负责人联系电话" align="center" prop="firstPhone" />
      <el-table-column label="负责人身份证号" align="center" prop="firstIdnumber" />
      <el-table-column label="成员一姓名" align="center" prop="secondName" />
      <el-table-column label="成员一年级" align="center" prop="secondGrade" />
      <el-table-column label="成员一专业" align="center" prop="secondMajor" />
      <el-table-column label="成员一学号" align="center" prop="secondNumber" />
      <el-table-column label="成员一学院" align="center" prop="secondCollege" />
      <el-table-column label="成员一联系电话" align="center" prop="secondPhone" />
      <el-table-column label="成员一身份证号" align="center" prop="secondIdnumber" />
      <el-table-column label="成员二姓名" align="center" prop="thirdName" />
      <el-table-column label="成员二年级" align="center" prop="thirdGrade" />
      <el-table-column label="成员二专业" align="center" prop="thirdMajor" />
      <el-table-column label="成员二学号" align="center" prop="thirdNumber" />
      <el-table-column label="成员二学院" align="center" prop="thirdCollege" />
      <el-table-column label="成员二联系电话" align="center" prop="thirdPhone" />
      <el-table-column label="成员二身份证号" align="center" prop="thirdIdnumber" />
      <el-table-column label="成员三姓名" align="center" prop="fourthName" />
      <el-table-column label="成员三年级" align="center" prop="fourthGrade" />
      <el-table-column label="成员三专业" align="center" prop="fourthMajor" />
      <el-table-column label="成员三学号" align="center" prop="fourthNumber" />
      <el-table-column label="成员三学院" align="center" prop="fourthCollege" />
      <el-table-column label="成员三联系电话" align="center" prop="fourthPhone" />
      <el-table-column label="成员三身份证号" align="center" prop="fourthIdnumber" />
      <el-table-column label="成员四姓名" align="center" prop="fifthName" />
      <el-table-column label="成员四年级" align="center" prop="fifthGrade" />
      <el-table-column label="成员四专业" align="center" prop="fifthMajor" />
      <el-table-column label="成员四学号" align="center" prop="fifthNumber" />
      <el-table-column label="成员四学院" align="center" prop="fifthCollege" />
      <el-table-column label="成员四联系电话" align="center" prop="fifthPhone" />
      <el-table-column label="成员四身份证号" align="center" prop="fifthIdnumber" />
      <el-table-column label="指导教师一姓名" align="center" prop="advisorName1" />
      <el-table-column label="指导教师一职称" align="center" prop="advisorTitl1" />
      <el-table-column label="指导教师一专业" align="center" prop="advisorMajor1" />
      <el-table-column label="指导教师一工号" align="center" prop="advisorNumber1" />
      <el-table-column label="指导教师二姓名" align="center" prop="advisorName2" />
      <el-table-column label="指导教师二职称" align="center" prop="advisorTitl2" />
      <el-table-column label="指导教师二专业" align="center" prop="advisorMajor2" />
      <el-table-column label="指导教师二工号" align="center" prop="advisorNumber2" />
      <el-table-column label="备注1" align="center" prop="note1" />
      <el-table-column label="备注2" align="center" prop="note2" />
      <el-table-column label="备注3" align="center" prop="note3" />
      <el-table-column label="备注4" align="center" prop="note4" />
      <el-table-column label="备注5" align="center" prop="note5" />
      <el-table-column label="备注6" align="center" prop="note6" />
      <el-table-column label="备注7" align="center" prop="note7" />
      <el-table-column label="备注8" align="center" prop="note8" />
      <el-table-column label="备注9" align="center" prop="note9" />
      <el-table-column label="备注10" align="center" prop="note10" />-->
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
        <template slot-scope="scope">
          <el-button
            v-show="scope.row.auditState==3"
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['project:cjl:achievement:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['project:cjl:achievement:remove']"
          >删除</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit-outline"
            @click="handleView(scope.row)"
            v-hasPermi="['module:cjl:achievement:detail']"
          >详情</el-button>
          <el-button
            v-show="scope.row.auditState==1"
            size="mini"
            type="text"
            icon="el-icon-zoom-in"
            @click="handleAduit(scope.row)"
            v-hasPermi="['project:cjl:achievement:aduit']"
          >审核</el-button>
          <el-button
            size="mini"
            v-show="scope.row.auditState==2 && scope.row.signingStatus==0"
            type="text"
            icon="el-icon-zoom-in"
            @click="handleSign(scope.row)"
            v-hasPermi="['project:cjl:achievement:sign']"
          >签约</el-button>
          <el-button
            size="mini"
            v-show="scope.row.signingStatus==1"
            type="text"
            @click="handleCancellation(scope.row)"
            v-hasPermi="['project:cjl:achievement:cancel']"
          >取消签约</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改成果信息对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="1300px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="150px">
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">成果信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="8">
                <el-form-item  label="成果名称" prop="resultName">
                  <el-input  v-model="form.resultName" placeholder="请输入成果名称" style="width:100%;float:left"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成果类型" prop="resultType">
                  <el-input v-model="form.resultType" placeholder="请输入成果类型" style="width:100%;float:left"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成果类别" prop="resultCategory">
                  <el-input v-model="form.resultCategory" placeholder="请输入成果类别" style="width:100%;float:left"></el-input>
                </el-form-item>
              </el-col>
            </el-row>

            <el-row>
              <el-col :span="8">
                <el-form-item label="成果等级" prop="resultGrade">
                  <el-input v-model="form.resultGrade" placeholder="请输入成果等级" style="width:100%;float:left"/>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成果来源" prop="resultSource">
                  <el-input v-model="form.resultSource" placeholder="请输入成果来源" style="width:100%;float:left"/>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="立项时间" prop="projectTime">
                  <el-date-picker clearable
                                  v-model="form.projectTime"
                                  type="date"
                                  value-format="yyyy-MM-dd"
                                  style="width:100%;float:left"
                                  placeholder="请选择立项时间">
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="技术领域" prop="technology">
                  <el-input v-model="form.technology" placeholder="请输入技术领域" style="width:100%;float:left"/>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item  label="完成单位" prop="completionUnit">
                  <el-input  v-model="form.completionUnit" placeholder="请输入完成单位" style="width:100%;float:left"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
                <el-form-item label="参赛经历" prop="competitionExperience">
                  <el-input v-model="form.competitionExperience" type="textarea" :rows="1" placeholder="请输入内容" />
                </el-form-item>
            </el-row>
            <el-row>
              <el-form-item label="成果背景" prop="resultBackground">
                <el-input v-model="form.resultBackground" type="textarea" :rows="1" placeholder="请输入内容" />
              </el-form-item>
            </el-row>
            <el-row>
              <el-form-item label="成果研究意义" prop="resultMeaning">
                <el-input v-model="form.resultMeaning" type="textarea" :rows="1" placeholder="请输入内容" />
              </el-form-item>
            </el-row>
            <el-row>
              <el-form-item label="成果简介" prop="resultIntroduction">
                <el-input v-model="form.resultIntroduction" type="textarea" :rows="1" placeholder="请输入内容" />
              </el-form-item>
            </el-row>
            <el-row>
              <el-form-item label="创新点" prop="innovationPoint">
                <el-input v-model="form.innovationPoint" type="textarea" :rows="1" placeholder="请输入内容" />
              </el-form-item>
            </el-row>
            <el-row>
              <el-col :span="12">
              <el-form-item label="成果图片1的路径" prop="picturePath1">
                <image-upload :limit="1" v-model="form.picturePath1"  />
              </el-form-item>
              </el-col>
              <el-col :span="12">
              <el-form-item label="成果图片2的路径" prop="picturePath2">
                <image-upload :limit="1" v-model="form.picturePath2"  />
              </el-form-item>
              </el-col>
            </el-row>
          </el-main>
        </el-container>
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">负责人信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
            <el-col :span="8">
              <el-form-item label="负责人姓名" prop="firstName">
                <el-input v-model="form.firstName" placeholder="请输入负责人姓名" />
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="负责人年级" prop="firstGrade">
                <el-input v-model="form.firstGrade" placeholder="请输入负责人年级" />
              </el-form-item>
            </el-col>
            <el-col :span="8">
              <el-form-item label="负责人专业" prop="firstMajor">
                <el-input v-model="form.firstMajor" placeholder="请输入负责人专业" />
              </el-form-item>
            </el-col>
          </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="负责人学号" prop="firstNumber">
                  <el-input v-model="form.firstNumber" placeholder="请输入负责人学号" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="负责人学院" prop="firstCollege">
                  <el-input v-model="form.firstCollege" placeholder="请输入负责人学院" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="负责人联系电话" prop="firstPhone">
                  <el-input v-model="form.firstPhone" placeholder="请输入负责人联系电话" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="负责人身份证号" prop="firstIdnumber">
                  <el-input v-model="form.firstIdnumber" placeholder="请输入负责人身份证号" />
                </el-form-item>
              </el-col>
            </el-row>
          </el-main>
        </el-container>
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">成员信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员一姓名" prop="secondName">
                  <el-input v-model="form.secondName" placeholder="请输入成员一姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员一年级" prop="secondGrade">
                  <el-input v-model="form.secondGrade" placeholder="请输入成员一年级" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员一专业" prop="secondMajor">
                  <el-input v-model="form.secondMajor" placeholder="请输入成员一专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员一学号" prop="secondNumber">
                  <el-input v-model="form.secondNumber" placeholder="请输入成员一学号" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员一学院" prop="secondCollege">
                  <el-input v-model="form.secondCollege" placeholder="请输入成员一学院" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员一联系电话" prop="secondPhone">
                  <el-input v-model="form.secondPhone" placeholder="请输入成员一联系电话" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员一身份证号" prop="secondIdnumber">
                  <el-input v-model="form.secondIdnumber" placeholder="请输入成员一身份证号" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员二姓名" prop="thirdName">
                  <el-input v-model="form.thirdName" placeholder="请输入成员二姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员二年级" prop="thirdGrade">
                  <el-input v-model="form.thirdGrade" placeholder="请输入成员二年级" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员二专业" prop="thirdMajor">
                  <el-input v-model="form.thirdMajor" placeholder="请输入成员二专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员二学号" prop="thirdNumber">
                  <el-input v-model="form.thirdNumber" placeholder="请输入成员二学号" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员二学院" prop="thirdCollege">
                  <el-input v-model="form.thirdCollege" placeholder="请输入成员二学院" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员二联系电话" prop="thirdPhone">
                  <el-input v-model="form.thirdPhone" placeholder="请输入成员二联系电话" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员二身份证号" prop="thirdIdnumber">
                  <el-input v-model="form.thirdIdnumber" placeholder="请输入成员二身份证号" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员三姓名" prop="fourthName">
                  <el-input v-model="form.fourthName" placeholder="请输入成员三姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员三年级" prop="fourthGrade">
                  <el-input v-model="form.fourthGrade" placeholder="请输入成员三年级" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员三专业" prop="fourthMajor">
                  <el-input v-model="form.fourthMajor" placeholder="请输入成员三专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员三学号" prop="fourthNumber">
                  <el-input v-model="form.fourthNumber" placeholder="请输入成员三学号" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员三学院" prop="fourthCollege">
                  <el-input v-model="form.fourthCollege" placeholder="请输入成员三学院" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员三联系电话" prop="fourthPhone">
                  <el-input v-model="form.fourthPhone" placeholder="请输入成员三联系电话" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员三身份证号" prop="fourthIdnumber">
                  <el-input v-model="form.fourthIdnumber" placeholder="请输入成员三身份证号" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员四姓名" prop="fifthName">
                  <el-input v-model="form.fifthName" placeholder="请输入成员四姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员四年级" prop="fifthGrade">
                  <el-input v-model="form.fifthGrade" placeholder="请输入成员四年级" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员四专业" prop="fifthMajor">
                  <el-input v-model="form.fifthMajor" placeholder="请输入成员四专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员四学号" prop="fifthNumber">
                  <el-input v-model="form.fifthNumber" placeholder="请输入成员四学号" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员四学院" prop="fifthCollege">
                  <el-input v-model="form.fifthCollege" placeholder="请输入成员四学院" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="成员四联系电话" prop="fifthPhone">
                  <el-input v-model="form.fifthPhone" placeholder="请输入成员四联系电话" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="成员四身份证号" prop="fifthIdnumber">
                  <el-input v-model="form.fifthIdnumber" placeholder="请输入成员四身份证号" />
                </el-form-item>
              </el-col>
            </el-row>
          </el-main>
        </el-container>
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">指导教师信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="8">
                <el-form-item label="指导教师一姓名" prop="advisorName1">
                  <el-input v-model="form.advisorName1" placeholder="请输入指导教师一姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="指导教师一职称" prop="advisorTitl1">
                  <el-input v-model="form.advisorTitl1" placeholder="请输入指导教师一职称" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="指导教师一专业" prop="advisorMajor1">
                  <el-input v-model="form.advisorMajor1" placeholder="请输入指导教师一专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="指导教师一工号" prop="advisorNumber1">
                  <el-input v-model="form.advisorNumber1" placeholder="请输入指导教师一工号" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="指导教师二姓名" prop="advisorName2">
                  <el-input v-model="form.advisorName2" placeholder="请输入指导教师二姓名" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="指导教师二职称" prop="advisorTitl2">
                  <el-input v-model="form.advisorTitl2" placeholder="请输入指导教师二职称" />
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="指导教师二专业" prop="advisorMajor2">
                  <el-input v-model="form.advisorMajor2" placeholder="请输入指导教师二专业" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="指导教师二工号" prop="advisorNumber2">
                  <el-input v-model="form.advisorNumber2" placeholder="请输入指导教师二工号" />
                </el-form-item>
            </el-col>
            </el-row>
            <el-row>
            <el-form-item label="备注" prop="note1">
              <el-input v-model="form.note1" type="textarea" :rows="3" placeholder="请输入备注" />
            </el-form-item>
            </el-row>
          </el-main>
        </el-container>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 审核成果信息对话框 -->
    <el-dialog :title="aduit.title" :visible.sync="aduit.open" width="1000px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="150px">
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">基本信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="12">
                <el-form-item label="成果名称" prop="resultName">
                  <el-input v-model="form.resultName" disabled="true" placeholder="请输入成果名称"  style="width: 100%"/>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="申请人姓名" prop="applyName">
                  <el-input v-model="form.applyName" disabled="true" placeholder="请输入申请人姓名"  style="width: 100%"/>
                </el-form-item>
              </el-col>
            </el-row>
              <el-row>
                <el-col :span="12">
                  <el-form-item label="申请人学号" prop="applyNumber">
                    <el-input v-model="form.applyNumber" disabled="true" placeholder="请输入申请人学号"  style="width: 100%"/>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                <el-form-item label="申请时间" prop="applyTime">
                  <el-date-picker clearable
                                  disabled="true"
                                  v-model="form.applyTime"
                                  type="date"
                                  value-format="yyyy-MM-dd"
                                  style="width: 100%;float:left"
                                  placeholder="请选择申请时间">
                  </el-date-picker>
                </el-form-item>
                </el-col>
            </el-row>
          </el-main>
        </el-container>
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">审核信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="12">
                <el-form-item label="审核状态" prop="auditState">
                  <el-select v-model="form.auditState"  style="width: 100%;">
                    <el-option
                      v-for="item in option_auditState"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value"
                    ></el-option>
                  </el-select>
                  <!--<el-input v-model="form.auditState" placeholder="请输入审核状态"  style="width: 100%"/>-->
                </el-form-item>
              </el-col>
            </el-row>
          <el-row>
            <el-form-item label="备注" prop="note2">
              <el-input  type="textarea" v-model="form.note2" placeholder="请输入备注" />
            </el-form-item>
          </el-row>
           <!-- <el-row>
              <el-col :span="12">
                <el-form-item label="审核人姓名" prop="auditName">
                  <el-input v-model="form.auditName" placeholder="请输入审核人姓名"  style="width: 100%"/>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="审核人工号" prop="auditNumber">
                  <el-input v-model="form.auditNumber" placeholder="请输入审核人工号"  style="width: 100%"/>
                </el-form-item>
              </el-col>
            </el-row>-->
            <!--<el-row>
              <el-form-item label="是否显示" prop="isShow">
                <el-input v-model="form.isShow" placeholder="请输入是否显示"  style="width: 100%"/>
              </el-form-item>
            </el-row>-->
          </el-main>
        </el-container>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="aduitForm">确 定</el-button>
        <el-button @click="aduitCancel">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 签约对话框 -->
    <el-dialog :title="sign.title" :visible.sync="sign.open" width="900px" append-to-body>
      <el-form ref="baseform" :model="baseform" :rules="baserules" label-width="130px">
        <!--<el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">企业联系人信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="12">
                <el-form-item label="手机号码" prop="note1">
                  <el-input v-model="form.note1" placeholder="请输入手机号码"  style="width: 100%"/>
                </el-form-item>
              </el-col>
                <el-col :span="12">
                <el-form-item label="邮箱" prop="note2">
                  <el-input v-model="form.note2" placeholder="请输入邮箱"  style="width: 100%"/>
                </el-form-item>
                </el-col>
            </el-row>
          </el-main>
        </el-container>-->
        <el-container>
          <el-header>
            <el-divider content-position="left">
              <p style="color: #00afff; font-size: 20px;">企业信息</p>
            </el-divider>
          </el-header>
          <el-main>
            <el-row>
              <el-col :span="12">
              <el-form-item label="法人姓名" prop="corporateName">
                <el-input v-model="baseform.corporateName" placeholder="请输入法人姓名"  style="width: 100%"/>
              </el-form-item>
              </el-col>
              <el-col :span="12">
              <el-form-item label="法人邮箱" prop="corporateEmail">
                <el-input v-model="baseform.corporateEmail" placeholder="请输入法人邮箱"  style="width: 100%"/>
              </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
              <el-form-item label="法人电话" prop="corporatePhone">
                <el-input v-model="baseform.corporatePhone" placeholder="请输入法人电话"  style="width: 100%"/>
              </el-form-item>
              </el-col>
              <el-col :span="12">
              <el-form-item label="法人身份证" prop="corporateNumber">
                <el-input v-model="baseform.corporateNumber" placeholder="请输入法人身份证"  style="width: 100%"/>
              </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
              <el-form-item label="企业营业执照" prop="businessLicense">
                <image-upload :limit="1" v-model="baseform.businessLicense"  />
                <!--<el-input v-model="baseform.businessLicense" placeholder="请输入企业营业执照"  style="width: 100%"/>-->
              </el-form-item>
              </el-col>
              <el-col :span="12">
              <el-form-item label="营业执照注册地" prop="licenseAddress">
                <el-input v-model="baseform.licenseAddress" placeholder="请输入营业执照注册地"  style="width: 100%"/>
              </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-form-item label="企业地址" prop="enterpriseAddress">
                <el-input v-model="baseform.enterpriseAddress" placeholder="请输入企业地址"  style="width: 100%"/>
              </el-form-item>
            </el-row>
            <el-row>
              <el-form-item label="备注" prop="note3">
                <el-input type="textarea" v-model="baseform.note3" placeholder="请输入备注"  style="width: 100%"/>
              </el-form-item>
            </el-row>
          </el-main>
        </el-container>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="signForm">确 定</el-button>
        <el-button @click="signCancel">取 消</el-button>
      </div>
    </el-dialog>

    <el-dialog
      :title="admit.title"
      :visible.sync="admit.open"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      :show-close="false"
      width="20%"
    >
      <span style="font-size: 22px"><b>游客请先登录！！！</b></span>
      <span slot="footer" class="dialog-footer">
    <el-button @click="handleBack">返回首页</el-button>
     </span>
    </el-dialog>
  </div>
</template>

<script>
import { listAchievement, getAchievement, delAchievement, addAchievement, updateAchievement,aduitAchievement,signTransform,getTransform,Checksign,Outsign,Cerifica,Allperson,Cancellation } from "@/api/module/cjl/achievement";
import Cookies from "js-cookie";
import {encrypt} from "@/utils/jsencrypt";

export default {
  name: "Achievement",
  dicts: ['cxcy_result_category','cxcy_result_type','cxcy_result_grade','cxcy_result_source','cxcy_technology','cxcy_isno','cxcy_cooperative_object','cxcy_result_year','cxcy_result_background','cxcy_signing_status'],
  data() {
    return {
      user: '',
      admit:{
        // 是否显示弹出层（用户查询）
        open: false,
        // 弹出层标题（用户查询）
        title: "",
      },
      reload1: 0,
      // 以下websocket
      wsIsRun: false,
      // 定义ws对象
      webSocket: null,
      // ws连接次数
      wsNumber: 0,
      // ws请求链接（类似于ws后台地址）
      ws: '',
      // ws定时器
      wsTimer: null,
      // 以上websocket
      unreadMsgNums: 0,
      unreadMsgNumsShow: '',
      hasConnected: false,
      statusoptions:[{
        value: '1',
        label: '待审核'
      }, {
        value: '2',
        label: '审核通过'
      }, {
        value: '3',
        label: '审核不通过'
      }],
      option_auditState: [{
        value: '2',
        label: '通过'
      }, {
        value: '3',
        label: '不通过'
      }],
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 成果信息表格数据
      achievementList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        userId: null,
        resultName: null,
        resultType: null,
        resultIntroduction: null,
        innovationPoint: null,
        competitionExperience: null,
        picturePath1: null,
        picturePath2: null,
        resultCategory: null,
        resultGrade: null,
        resultSource: null,
        resultBackground: null,
        resultMeaning: null,
        projectTime: null,
        technology: null,
        completionUnit: null,
        applyName: null,
        applyNumber: null,
        applyTime: null,
        auditState: null,
        auditTime: null,
        auditName: null,
        auditNumber: null,
        isShow: null,
        firstName: null,
        firstGrade: null,
        firstMajor: null,
        firstNumber: null,
        firstCollege: null,
        firstPhone: null,
        firstIdnumber: null,
        secondName: null,
        secondGrade: null,
        secondMajor: null,
        secondNumber: null,
        secondCollege: null,
        secondPhone: null,
        secondIdnumber: null,
        thirdName: null,
        thirdGrade: null,
        thirdMajor: null,
        thirdNumber: null,
        thirdCollege: null,
        thirdPhone: null,
        thirdIdnumber: null,
        fourthName: null,
        fourthGrade: null,
        fourthMajor: null,
        fourthNumber: null,
        fourthCollege: null,
        fourthPhone: null,
        fourthIdnumber: null,
        fifthName: null,
        fifthGrade: null,
        fifthMajor: null,
        fifthNumber: null,
        fifthCollege: null,
        fifthPhone: null,
        fifthIdnumber: null,
        advisorName1: null,
        advisorTitl1: null,
        advisorMajor1: null,
        advisorNumber1: null,
        advisorName2: null,
        advisorTitl2: null,
        advisorMajor2: null,
        advisorNumber2: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null,
        signingStatus: null,
        cooperativeObject: null,
        resultYear: null,
        sixthName: null,
        sixthGrade: null,
        sixthMajor: null,
        sixthNumber: null,
        sixthCollege: null,
        sixthPhone: null,
        sixthIdnumber: null,
        seventhName: null,
        seventhGrade: null,
        seventhMajor: null,
        seventhNumber: null,
        seventhCollege: null,
        seventhPhone: null,
        seventhIdnumber: null,
        eighthName: null,
        eighthGrade: null,
        eighthMajor: null,
        eighthNumber: null,
        eighthCollege: null,
        eighthPhone: null,
        eighthIdnumber: null,
        ninthName: null,
        ninthGrade: null,
        ninthMajor: null,
        ninthNumber: null,
        ninthCollege: null,
        ninthPhone: null,
        ninthIdnumber: null,
      },
      // 审核查询参数
      aduit:{
        // 是否显示弹出层（用户查询）
        open: false,
        // 弹出层标题（用户查询）
        title: "",
      },
      // 签约查询参数
      sign:{
        // 是否显示弹出层（用户查询）
        open: false,
        // 弹出层标题（用户查询）
        title: "",
      },
      // 表单参数
      form: {
        auditTime:this.getNowTime(),
      },
      baseform:{},
      // 表单校验
      rules: {
        auditState: [
          { required: true, message: "审核状态不能为空", trigger: "blur" },
        ],
      },
      baserules: {
        corporateName: [
          { required: true, message: "法人姓名不能为空", trigger: "blur" },
        ],
        corporateEmail:[
          { required: true, message: "法人邮箱不能为空", trigger: "blur" },
          {type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"]}
        ],
        corporatePhone: [
          { required: true, message: "法人电话不能为空", trigger: "blur" },
          {
            pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
            message: "请输入正确的手机号码",
            trigger: "blur"
          }
        ],
        corporateNumber:[
          { required: true, message: "法人身份证不能为空", trigger: "blur" },
          {
            pattern: /^(^\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/,
            message: "请输入正确的身份证号",
            trigger: "blur"
          }
        ],
        businessLicense: [
          { required: true, message: "企业营业执照不能为空", trigger: "blur" },
        ],
        licenseAddress:[
          { required: true, message: "营业执照注册地不能为空", trigger: "blur" },
        ],
        enterpriseAddress:[
          { required: true, message: "企业地址不能为空", trigger: "blur" },
        ],
      }
    };
  },
  created() {
    this.wsIsRun = true
    this.wsNumber = 1
    this.wsInit();
    this.getList();
    this.getNowTime();
    this.yangshi();
  },
  methods: {
    /**
     * 初始化ws
     */
    wsInit() {
      // console.log("userName: " + this.$store.state.user.ipp)
      console.log("user: " + this.$store.state.constip.ipp)
      // const wsuri = 'ws://' + '210.47.178.218' + ':8080/library/wsService/' + this.$store.state.user.name
      this.getConfigKey("sys.account.ip").then(response => {
        this.sysipp = response.msg;
      });
      console.log("sysipp: " + this.sysipp)
      const wsuri = 'ws://' + this.sysipp + '/library/wsService/' +
        this.$store.state.constip.ipp + "_" + Math.floor(Math.random() * (99999 - 10000) + 10000);
      console.log("wsuri: " + wsuri)
      this.ws = wsuri
      if (!this.wsIsRun)
        return
      // 销毁ws
      this.wsDestroy()
      // 初始化ws
      this.webSocket = new WebSocket(this.ws)
      // ws连接建立时触发
      this.webSocket.addEventListener('open', this.wsOpenHanler)
      // ws服务端给客户端推送消息
      this.webSocket.addEventListener('message', this.wsMessageHanler)
      // ws通信发生错误时触发
      this.webSocket.addEventListener('error', this.wsErrorHanler)
      // ws关闭时触发
      this.webSocket.addEventListener('close', this.wsCloseHanler)

      clearInterval(this.wsTimer);
    },
    yangshi(){

      if(this.$store.state.user.roles.indexOf('youke') > -1){
        // this.loading = true;
        this.admit.open = true;
        /*this.$router.push({path: "/shou"});*/
      } else {
        /*this.$router.push({path: "/index"});*/
      }
    },
    handleBack(){
      this.$router.push({path: "/shou"});
    },
    subSend(userId) {

      //获取msg的value
      // var msg = document.getElementById("msg").value;

      this.webSocket.send(userId);

      // ws服务端给客户端推送消息

      // document.getElementById("msg").value="";
    },


    wsOpenHanler(event) {
      console.log('ws建立连接成功')
    },
    wsMessageHanler(e) {

      //Cookies.set('unreadNums', '6')

      this.openMsg(e)
      //const redata = JSON.parse(e.data)
      //console.log(redata)

    },
    /**
     * ws通信发生错误
     */
    wsErrorHanler(event) {
      console.log(event, '通信发生错误')
      console.log("第" + this.wsNumber + "次断线重连(5次未连接将自动断开)")
      this.wsNumber++
      if (this.wsNumber < 6) this.wsInit();
      //this.wsInit()
    },
    /**
     * ws关闭
     */
    wsCloseHanler(event) {
      console.log(event, 'ws关闭')
      console.log("websocket连接超时，已自动断开")
      //this.wsInit()
    },
    /**
     * 销毁ws
     */
    wsDestroy() {
      console.log("hello world")
      if (this.webSocket !== null) {
        this.webSocket.removeEventListener('open', this.wsOpenHanler)
        this.webSocket.removeEventListener('message', this.wsMessageHanler)
        this.webSocket.removeEventListener('error', this.wsErrorHanler)
        this.webSocket.removeEventListener('close', this.wsCloseHanler)
        this.webSocket.close()
        this.webSocket = null
        clearInterval(this.wsTimer)
        console.log("zoul111")
      } else {
        console.log("zoul")
      }
    },
    /**
     * 弹窗
     */
    openMsg(e) {
      const h = this.$createElement;
      if (e.data) {
        if(e.data==1) {
          this.$router.push({path: "/dashujuzhanshi/dashujushouye"})
        }
        else if(e.data==2){
          this.$router.push({path: "/shou"})
        }else if(e.data==3){
          this.$router.push({path: "/mwnhugongshi"})
        }else if(e.data==4){
          this.$router.push({path: "/liucheng"})
        }else if(e.data==5){
          this.$router.push({path: "/dashujuzhanshi/xueyuan"})
        }else if(e.data==6){
          this.$router.push({path: "/dashujuzhanshi/nianfen"})
        }else if(e.data==10){
          window.scrollBy(0, 100);
        }else if(e.data==11){
          window.scrollBy(0, -100);
        }else if(e.data==12){
          this.queryParams.signingStatus="0";

        }else if(e.data==21){
          this.$router.push({path: "/ykqlogin3"})
        } else if(e.data==22){
          this.$router.push({path: "/ykqlogin4"})
        }else if(e.data==23){
          this.$router.push({path: "/ykqlogin5"})
        }else if(e.data==24){
          this.$router.push({path: "/shou"})
        }else if(e.data==210){
          this.$router.push({path: "/index"})
        }else if(e.data==211){
          this.$router.push({path: "/transformation"})
        }else if(e.data==212){
          this.$router.push({path: "/wodehetong"})
        }else if(e.data==213){
          this.$router.push({path: "/expense"})
        }else if(e.data==214){
          this.$router.push({path: "/qiye"})
        }else if(e.data==215){
          this.$router.push({path: "/geren"})
        }else if(e.data==216){
          this.$router.push({path: "/chengguogongshi"})
        }else if(e.data==217){
          this.$router.push({path: "/daochuxinxi"})
        }else if(e.data==218){
          this.$router.push({path: "/resultapply"})
        }else if(e.data==13){
          this.queryParams.signingStatus="1";

        }else if(e.data>500&&e.data<2000){
          let id=e.data-500
          this.$router.push({path: "/detail",query: {id}})

        }else if(e.data>2000&&e.data<3000){
          let nianfen=e.data
          this.$router.push({path: "/dashujuzhanshi/xueyuan",query: {nianfen}})

        }else if(e.data>3000&&e.data<4000){
          let firstcollege=e.data
          let i_xueyuan=firstcollege-3000
          let xueyuan = '';
          if(i_xueyuan<10){
            xueyuan='00'+i_xueyuan;
          }else if(i_xueyuan>=10 && i_xueyuan<100){
            xueyuan='0'+i_xueyuan;
          }else{

          }
          this.$router.push({path: "/dashujuzhanshi/nianfen",query: {xueyuan}})


        }
        else{
          let userId=e.data
          this.$router.push({path: "/view",query: {userId}})

        }
        /*var dv = document.getElementById("dv");
        dv.innerHTML += e.data + " ";*/
        /*this.$router.push({path: "/"});*/

        var data = JSON.parse(e.data)
        var route = this.$router;
        var msgType = data.msgType;
        /*if (msgType == "push") {
          // 如果是推送的是一条消息
          this.unreadMsgNums++;
          if (this.unreadMsgNums > 99) {
            this.unreadMsgNumsShow = "99+";
          } else {
            this.unreadMsgNumsShow = String(this.unreadMsgNums);
          }

          this.$notify.info({
            title: data.msgTitle,
            message: data.msgContent,
            onClick() {
              console.log(route)
              route.push({path: "/library/yyg/msg/list"});
            }
          });
        } else if (msgType == "unread") {
          // 如果推送的是未读消息数
          //Cookies.set('unreadNums', data.unreadNums);
          this.unreadMsgNums = Number(data.unreadNums);
          if (this.unreadMsgNums > 0) {
            this.unreadMsgNumsShow = String(this.unreadMsgNums);
            if (this.unreadMsgNums > 99) {
              this.unreadMsgNumsShow = "99+";
            }
            this.$notify.info({
              title: "消息提醒",
              //message: data.msgContent,
              message: "您当前有" + this.unreadMsgNumsShow + "条未读消息，点击此处查看",
              onClick() {
                console.log(route)
                route.push({path: "/library/yyg/msg/list"});
              }
            });
          }
        } else if (msgType == "read") {
          // 如果推送的是用户已读消息
          this.unreadMsgNums--;
          if (this.unreadMsgNums > 0 && this.unreadMsgNums <= 99) {
            this.unreadMsgNumsShow = String(this.unreadMsgNums);
          } else if (this.unreadMsgNums <= 0) {
            this.unreadMsgNumsShow = '';
          }
        }
*/
      }
    },
    //生成表头序号
    indexMethod(index) {
      index = (index + 1) + (this.queryParams.pageNum - 1) * this.queryParams.pageSize
      return index;
    },
    getNowTime() {
      var now = new Date();
      var year = now.getFullYear(); //得到年份
      var month = now.getMonth(); //得到月份
      var date = now.getDate(); //得到日期
      month = month + 1;
      month = month.toString().padStart(2, "0");
      date = date.toString().padStart(2, "0");
      var defaultDate = `${year}-${month}-${date}`;
      return defaultDate;
    },
    /** 查询成果信息列表 */
    getList() {
      this.loading = true;
      listAchievement(this.queryParams).then(response => {
        this.achievementList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 取消按钮
    aduitCancel() {
      this.aduit.open = false;
      this.reset();
    },
    // 取消按钮
    signCancel() {
      this.sign.open = false;
      this.reset1();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        userId: null,
        resultName: null,
        resultType: null,
        resultIntroduction: null,
        innovationPoint: null,
        competitionExperience: null,
        picturePath1: null,
        picturePath2: null,
        resultCategory: null,
        resultGrade: null,
        resultSource: null,
        resultBackground: null,
        resultMeaning: null,
        projectTime: null,
        technology: null,
        completionUnit: null,
        applyName: null,
        applyNumber: null,
        applyTime: null,
        auditState: null,
        auditTime: null,
        auditName: null,
        auditNumber: null,
        isShow: null,
        firstName: null,
        firstGrade: null,
        firstMajor: null,
        firstNumber: null,
        firstCollege: null,
        firstPhone: null,
        firstIdnumber: null,
        secondName: null,
        secondGrade: null,
        secondMajor: null,
        secondNumber: null,
        secondCollege: null,
        secondPhone: null,
        secondIdnumber: null,
        thirdName: null,
        thirdGrade: null,
        thirdMajor: null,
        thirdNumber: null,
        thirdCollege: null,
        thirdPhone: null,
        thirdIdnumber: null,
        fourthName: null,
        fourthGrade: null,
        fourthMajor: null,
        fourthNumber: null,
        fourthCollege: null,
        fourthPhone: null,
        fourthIdnumber: null,
        fifthName: null,
        fifthGrade: null,
        fifthMajor: null,
        fifthNumber: null,
        fifthCollege: null,
        fifthPhone: null,
        fifthIdnumber: null,
        advisorName1: null,
        advisorTitl1: null,
        advisorMajor1: null,
        advisorNumber1: null,
        advisorName2: null,
        advisorTitl2: null,
        advisorMajor2: null,
        advisorNumber2: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null,
        signingStatus: null,
        cooperativeObject: null,
        resultYear: null,
        sixthName: null,
        sixthGrade: null,
        sixthMajor: null,
        sixthNumber: null,
        sixthCollege: null,
        sixthPhone: null,
        sixthIdnumber: null,
        seventhName: null,
        seventhGrade: null,
        seventhMajor: null,
        seventhNumber: null,
        seventhCollege: null,
        seventhPhone: null,
        seventhIdnumber: null,
        eighthName: null,
        eighthGrade: null,
        eighthMajor: null,
        eighthNumber: null,
        eighthCollege: null,
        eighthPhone: null,
        eighthIdnumber: null,
        ninthName: null,
        ninthGrade: null,
        ninthMajor: null,
        ninthNumber: null,
        ninthCollege: null,
        ninthPhone: null,
        ninthIdnumber: null
      };
      this.resetForm("form");
    },
    // 表单重置
    reset1() {
      this.baseform = {
        userId: null,
        nickName: null,
        sex: null,
        phone: null,
        email: null,
        idNumber: null,
        userType: null,
        college: null,
        major: null,
        studentNumber: null,
        grade: null,
        cardNumber: null,
        openingBank: null,
        bankAddress: null,
        jobNumber: null,
        professionalTitl: null,
        enterpriseName: null,
        enterpriseNumber: null,
        corporateName: null,
        corporateEmail: null,
        corporatePhone: null,
        corporateNumber: null,
        businessLicense: null,
        licenseAddress: null,
        enterpriseAddress: null,
        registrationTime: null,
        registrationName: null,
        registrationNumber: null,
        auditState: null,
        auditTime: null,
        auditName: null,
        auditNumber: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null
      };
      this.resetForm("baseform");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
     /*this.reset();
      this.open = true;
      this.title = "添加成果信息";*/
      this.$router.push({path: "/resultapply"});
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      const id = row.id || this.ids
      this.$router.push({ path:"/resultapply", query: {id}});

    },
    //详情
    handleView(row){
      const id = row.id;
      this.$router.push({ path:"/detail", query: {id}});
    },
    //取消签约
    handleCancellation(row){
      const id = row.id || this.ids
      this.$modal.confirm('是否确认取消签约？').then(function () {
      }).then(() => {
        Cancellation(id).then(response => {
          this.$modal.msgSuccess("取消签约成功");
          this.getList();
        });
      });
    },
    //签约
    handleSign(row){
      const id = row.id || this.ids
      Cerifica().then(response => {
        const cerifica=response
        if(cerifica==0){  //是否认证
          Allperson().then(response => {
            const allperson = response
            if (allperson == 0) {   //是否是企业用户
              Checksign().then(response => {
                const result=response
                if(result==0){    //是否完善企业信息
                  this.$modal.confirm('是否确认签约？').then(function () {
                  }).then(() => {
                    Outsign(id).then(response => {
                      this.$modal.msgSuccess("签约成功");
                      this.getList();
                    });
                  });
                }else{
                  this.reset1();
                  this.baseform.id = row.id || this.ids;
                  this.sign.open = true;
                  this.sign.title = "完善企业信息";
                }
              })
            }else{
              this.$modal.confirm('是否确认签约？').then(function () {
              }).then(() => {
                Outsign(id).then(response => {
                  this.$modal.msgSuccess("签约成功");
                  this.getList();
                });
              });
            }
          });
        }else{
          this.$modal.msgError("未认证或者认证失败，无法签约");
        }
      });
    },
    //审核
    handleAduit(row){
      const id = row.id || this.ids
      getAchievement(id).then(response => {
        this.form = response.data;
        this.form.auditTime=this.getNowTime();
        this.form.auditState=null;
        this.aduit.open = true;
        this.aduit.title = "审核成果发布申请";
      });
    },
    /** 审核提交 */
    aduitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            aduitAchievement(this.form).then(response => {
              this.$modal.msgSuccess("提交成功");
              this.aduit.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 签约提交 */
    signForm() {
      this.$refs["baseform"].validate(valid => {
        if (valid) {
            signTransform(this.baseform).then(res => {
              this.$modal.msgSuccess("签约成功");
              this.sign.open = false;
              this.getList();
            });
        }
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateAchievement(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addAchievement(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除成果信息编号为"' + ids + '"的数据项？').then(function() {
        return delAchievement(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('project/cjl/achievement/export', {
        ...this.queryParams
      }, `成果发布申请_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>

